package com.keguoyu.easymvp.receiver;

import androidx.annotation.NonNull;

import com.keguoyu.easymvp.business.AutoWiredExtension;

public class BaseAutoWiredReceiver implements AutoWiredReceiver {

  private final AutoWiredExtension mAutoWiredExtension = new AutoWiredExtension(this);

  @Override
  public void addToProvider(@NonNull Object src) {
    mAutoWiredExtension.addToProvider(src);
  }

  @Override
  public void autoWire(Object... objects) {
    mAutoWiredExtension.autoWire(objects);
  }

  @Override
  public void reset() {
    mAutoWiredExtension.reset();
  }

  @Override
  public boolean available() {
    return mAutoWiredExtension.available();
  }
}
